package com.example.springbasicstudy.Import.config;

import com.example.springbasicstudy.Import.entry.B;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * <pre>
 * 功能描述：
 * </pre>
 *
 * @author: 李明杰
 * @date: 2022/8/23 19:54
 */
@Configuration
@Import(ConfigA.class)//可以导入多个类
public class ConfigB {

    @Bean
    public B b() {
        return new B();
    }
}
